package com.example.springbootsfzy.mapper;

import com.example.springbootsfzy.domain.CoursePurchaseRecords;

import java.util.List;

/**
* @author 30658
* @description 针对表【course_purchase_records】的数据库操作Mapper
* @createDate 2025-01-02 15:11:36
* @Entity com.example.springbootsfzy.domain.CoursePurchaseRecords
*/
public interface CoursePurchaseRecordsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(CoursePurchaseRecords record);

    int insertSelective(CoursePurchaseRecords record);

    CoursePurchaseRecords selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CoursePurchaseRecords record);

    int updateByPrimaryKey(CoursePurchaseRecords record);
   List<CoursePurchaseRecords> getAllRecords();

   //通过课程查询购买信息
    List<CoursePurchaseRecords> getRecordsByCourseId(Integer id);
}
